<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'App',

  mounted () {
    axios.get('/data/pcap_parse_result.json')
      .then(res => {
        this.$store.commit('setPcapData', res.data)
      })

    axios.get('/data/pcap_ip_addr.json')
      .then(res => {
        this.$store.commit('setIpLatMap', res.data)
      })
  }

}
</script>

<style lang="less">
  .size {
    width: 100%;
    height: 100%;
  }

  html, body {
    .size;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  #app {
    .size;
  }
</style>
